package com.gml.design.principle.dimite.optimize;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

public class Test {
    private static Logger logger = LoggerFactory.getLogger(Test.class);

    //校长只负责，老师，老师负责学生，一一负责，尽量少的去减少对其他对象的了解
    public static void main(String[] args) {
        Principal principal = new Principal();
        Map<String, Object> map = principal.queryClazzInfo("3年1班");
        logger.info("查询结果：{}", JSON.toJSONString(map));
    }
}
